.markdown-body {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  word-wrap: break-word;
  word-break: break-word;
  -webkit-user-select: text;
  user-select: text;

  a {
    color: #5289ff;
    text-decoration: none;
    text-decoration-color: #5289ff
  }

  a:hover {
    position: relative;
    color: #84abff;
    text-decoration-color: #84abff;
    text-decoration: underline
  }

  b,
  strong {
    font-weight: 700;
  }


  sub,
  sup {
    position: relative;
    vertical-align: initial
  }



  code,
  kbd,
  pre,
  samp {
    font-size: 14px;
    font-family: PingFangSC-Regular, Helvetica Neue, Helvetica, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  }

  hr {
    margin: 24px 0;
    border: 0;
    height: 1px;
    background-color: #eaeaea;
  }

  hr:after,
  hr:before {
    display: table;
    content: ""
  }

  hr:after {
    clear: both
  }

  input {
    font: inherit;
    margin: 0;
    overflow: visible;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit
  }

  ::-webkit-input-placeholder {
    color: inherit;
    opacity: .54
  }

  ::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
  }

  ::placeholder {
    color: #6e7781;
    opacity: 1
  }

  table {
    border-spacing: 0;
    border-collapse: initial;
    display: block;
    max-width: 100%;
    overflow: auto;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    width: fit-content;
  }

  td,
  th {
    padding: 0
  }

  details summary {
    cursor: pointer
  }


  a:not([class]):focus,
  a:not([class]):focus-visible,
  input[type=checkbox]:focus,
  input[type=checkbox]:focus-visible,
  input[type=radio]:focus,
  input[type=radio]:focus-visible {
    outline-offset: 0
  }


  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    padding-top: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.25
  }

  h1 {
    font-size: 18px
  }

  h2 {
    font-size: 16px
  }

  h3,
  h4,
  h5,
  h6 {
    font-size: 14px
  }

  blockquote {
    margin: 0;
    padding: 0 12px;
    border-left: 3px solid #84abff;
  }

  ol {
    list-style: decimal
  }

  ul {
    list-style: disc
  }

  >ol,
  >ul {
    padding: 0
  }

  ol ol,
  ul ol {
    list-style-type: lower-roman
  }

  ol ol ol,
  ol ul ol,
  ul ol ol,
  ul ul ol {
    list-style-type: lower-alpha
  }

  dd {
    margin-left: 0
  }

  tt {
    font-size: 12px
  }

  input::-webkit-inner-spin-button,
  input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
    appearance: none
  }

  a:not([href]) {
    color: inherit;
    text-decoration: none
  }


  .anchor {
    float: left;
    padding-right: 4px;
    margin-left: -20px;
    line-height: 1
  }

  .anchor:focus {
    outline: none
  }

  blockquote,
  details,
  dl,
  ol,
  p,
  pre,
  table,
  ul {
    margin-top: 0;
    margin-bottom: 8px
  }

  p:last-child {
    margin-bottom: 0
  }

  ol,
  ul {
    padding-left: 2em
  }


  blockquote>:first-child {
    margin-top: 0
  }

  blockquote>:last-child {
    margin-bottom: 0
  }

  h1 .octicon-link,
  h2 .octicon-link,
  h3 .octicon-link,
  h4 .octicon-link,
  h5 .octicon-link,
  h6 .octicon-link {
    color: #24292f;
    vertical-align: middle;
    visibility: hidden
  }

  h1:hover .anchor,
  h2:hover .anchor,
  h3:hover .anchor,
  h4:hover .anchor,
  h5:hover .anchor,
  h6:hover .anchor {
    text-decoration: none
  }

  h1:hover .anchor .octicon-link,
  h2:hover .anchor .octicon-link,
  h3:hover .anchor .octicon-link,
  h4:hover .anchor .octicon-link,
  h5:hover .anchor .octicon-link,
  h6:hover .anchor .octicon-link {
    visibility: visible
  }

  h1 code,
  h1 tt,
  h2 code,
  h2 tt,
  h3 code,
  h3 tt,
  h4 code,
  h4 tt,
  h5 code,
  h5 tt,
  h6 code,
  h6 tt {
    padding: 0 .2em;
    font-size: inherit
  }

  summary h1,
  summary h2,
  summary h3,
  summary h4,
  summary h5,
  summary h6 {
    display: inline-block
  }

  summary h1 .anchor,
  summary h2 .anchor,
  summary h3 .anchor,
  summary h4 .anchor,
  summary h5 .anchor,
  summary h6 .anchor {
    margin-left: -40px
  }

  summary h1,
  summary h2 {
    padding-bottom: 0;
    border-bottom: 0
  }

  ol.no-list,
  ul.no-list {
    padding: 0;
    list-style-type: none
  }

  ol[type=a] {
    list-style-type: lower-alpha
  }

  ol[type=A] {
    list-style-type: upper-alpha
  }

  ol[type=i] {
    list-style-type: lower-roman
  }

  ol[type=I] {
    list-style-type: upper-roman
  }

  div>ol:not([type]),
  ol[type="1"] {
    list-style-type: decimal
  }

  ol ol,
  ol ul,
  ul ol,
  ul ul {
    margin-top: 0;
    margin-bottom: 0
  }

  li>p {
    margin-top: 16px
  }

  li+li {
    margin-top: .25em
  }

  dl {
    padding: 0
  }

  dl dt {
    padding: 0;
    margin-top: 16px;
    font-size: 1em;
    font-style: italic;
  }

  dl dd {
    padding: 0 16px;
    margin-bottom: 16px
  }

  table th {
    font-size: 12px;
    white-space: nowrap
  }

  table td {
    font-size: 13px;
    font-weight: 400;
    ;
  }

  table td,
  table th {
    padding: 8px 15px
  }

  table tr>td:not(:last-child),
  table tr>th:not(:last-child) {
    border-right: 1px solid #eaeaea
  }

  table tbody tr:first-child td {
    border-top: 1px solid #eaeaea
  }

  table tbody tr:not(:last-child) td {
    border-bottom: 1px solid #eaeaea
  }

  code,
  tt {
    margin: 0;
    white-space: break-spaces;
  }

  code br,
  tt br {
    display: none
  }

  del code {
    text-decoration: inherit
  }

  pre code {
    white-space: pre-wrap !important
  }

  pre>code {
    padding: 0;
    margin: 0;
    word-break: normal;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0);
    border: 0;
  }

  .highlight {
    margin-bottom: 16px
  }

  .highlight pre {
    margin-bottom: 0;
    word-break: normal
  }

  .highlight pre {
    padding: 16px;
    overflow: auto;
    color: #24292f;
    line-height: 1.45
  }

  .lang-mermaid {
    color: #fff;

  }

  pre {
    margin-top: 6px;
    margin-bottom: 10px;
    word-wrap: normal;
    padding: 15px 30px 10px 15px;
    overflow: auto;
    line-height: 1.45;
    background-color: #c8ceda40;
    border-radius: 5px;
    min-width: 100px;
    position: relative;
    border-radius: 6px;
  }

  pre .copy {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    color: #464646;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
  }

  pre:hover .copy {
    opacity: 1;
  }

  pre code,
  pre tt {
    display: inline-block;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    line-height: 1.8;
    word-wrap: normal;
    background-color: rgba(0, 0, 0, 0);
    border: 0;
  }

  .MathJax {
    text-align: left !important;
  }


  img {
    max-height: 200px;
    margin-bottom: 8px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    cursor: zoom-in;
    min-height: 200px;
    background-color: #f5f5f5;
    background-image:
      linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%),
      linear-gradient(90deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px, 20px 20px;
    background-position: 0 0, 0 0;
    transition: opacity 0.3s ease-in-out;

    &.loaded {
      background: none;
      opacity: 1;
    }

    &.loading {
      opacity: 0.7;
      animation: shimmer 1.5s infinite;
    }

    &.error {
      background-color: #f5f5f5;
      background-image: none;
      opacity: 0.5;
      position: relative;

      &::after {
        content: "图片加载失败";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #999;
        font-size: 12px;
        pointer-events: none;
      }
    }
  }

  .mermaid {
    margin: 16px 0;
    overflow-x: auto;
    max-width: 100%;

    .language-mermaid {
      display: none;
    }

    svg {
      max-width: 100%;
      height: auto;
    }
  }

}


@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}